/*
 * @Author: LibraStalker 1299640057@qq.com
 * @Date: 2023-01-27 23:52:38
 * @FilePath: index.ts
 * @Description: 
 */
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import ImageDetectView from "@/views/ImageDetectView.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: '/image-detect',
    name: 'image-detect',
    component: ImageDetectView
  },
  {
    path: '/video-detect',
    name: 'video-detect',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/VideoDetectView.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
